package com.atguigu.lease.web.admin.service;

import com.atguigu.lease.model.entity.ApartmentInfo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentDetailVo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentItemVo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentQueryVo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentSubmitVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * ClassName: ApartmentInfoService
 * Package: com.atguigu.lease.web.admin.service
 * Description:
 *
 * @Author ygf
 * @Create 2024/9/14 13:54
 * @Version 1.0
 */
public interface ApartmentInfoService extends IService<ApartmentInfo> {

    /*新增或修改公寓信息*/
    void saveOrUpdateApartmentInfo(ApartmentSubmitVo apartmentSubmitVo);

    /*根据id删除公寓信息*/
    void deleteApartmentInfoById(Long id);

    /*带条件分页查询列表*/
    IPage<ApartmentItemVo> getPageList(Page<ApartmentItemVo> page, ApartmentQueryVo queryVo);

    /*根据id查询公寓详情信息*/
    ApartmentDetailVo getApartmentDetailById(Long id);
}
